package structure.bridge;

/**
 * 图形绘制
 */
public interface DrawApi {	
	void drawCircle(int radius, int x, int y);
}

/**
 * 抽象的真正实现
 */
class RedCircle implements DrawApi {
   @Override
   public void drawCircle(int radius, int x, int y) {
      System.out.println("Drawing Circle[ color: red, radius: "+ radius +", x: " +x+", "+ y +"]");
   }
}

class GreenCircle implements DrawApi {
   @Override
   public void drawCircle(int radius, int x, int y) {
      System.out.println("Drawing Circle[ color: green, radius: " + radius +", x: " +x+", "+ y +"]");
   }
}